package book_management.user.operation.impl;

import book_management.user.book.BookList;
import book_management.user.operation.IOperation;

public class FindOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("您现在正在进行的是书籍的查找操作");
        System.out.println("请输入您要查找的书籍名称：");
        String bookName=scanner.next();
        if(bookList.isContains(bookName)){
            System.out.println("找到了");
        }else{
            System.out.println("该书不存在~~");
        }

    }
}
